#include "gotocelldialog.h"

GotoCellDialog::GotoCellDialog(QWidget *parent) :
	QDialog(parent) {

	ui.setupUi(this);

	QRegExp regExp("[A-Za-z][1-9][0-9]{0,2}");
	ui.lineEdit->setValidator(new QRegExpValidator(regExp, this));
}

GotoCellDialog::~GotoCellDialog() {

}

void GotoCellDialog::on_lineEdit_textChanged() {
	ui.okButton->setEnabled(ui.lineEdit->hasAcceptableInput());
}
